<template>
  <div class="home-search">
    <input type="text" placeholder="华莱士">
   <font-awesome-icon icon="search"></font-awesome-icon>
  </div>
</template>

<script>
export default {
  name: 'Search'
}
</script>

<style scoped lang="less">
  .home-search {
    height: 40px;
    position: relative;
    width: 100%;
    margin: 10px;
  input {
    width: 80%;
    margin-left: 10%;
    padding-left: 40%;
    box-sizing: border-box;
    border-radius: 20px;
    border: 1px solid #ccc;
    height: 40px;
  }

  svg {
    position: absolute;
    top: 12px;
    right: 50%;
    font-size: 18px;
  }
  }
</style>
